﻿using Camc.Quality.RecordTable.FormBase;
using Camc.Quality.RecordTable.FormClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.RecordTable.FormEntity
{
  public  class 飞行质量质心皮重及参数记录表 : TableBase
    {
        public 飞行质量质心皮重及参数记录表(int serialNum, Guid workStepEntityId, Guid processesEntityId, int sort, string recordElement,string recordItem)
        {
            SerialNum = serialNum;
            WorkStepEntityId = workStepEntityId;
            ProcessesEntityId = processesEntityId;
            Sort = sort;
            RecordElement = recordElement;
            RecordItem = recordItem;
        }

        public override string FormName { get; protected set; } = "飞行质量质心皮重及参数记录表";

        #region A10_记录项目
        public override string RecordElement_DisplayName { get; protected set; } = "记录项目";
        public override bool RecordElement_Show { get; protected set; } = true;
        public override int RecordElement_Property { get; protected set; } = 1;
        #endregion
        #region A11_记录元素
        public override string RecordItem_DisplayName { get; protected set; } = "记录元素";
        public override bool RecordItem_Show { get; protected set; } = true;
        #endregion
        /// <summary>
        /// 实测值
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="firstMeasuredValues"></param>
        /// <returns></returns>
        public MeasuredResultEntity SetMeasuredResult(MeasuredResultEntity entity, string firstMeasuredValues)
        {
            entity.SetFirstMeasuredValues(firstMeasuredValues, "实测值", true, true, 0);
            return entity;
        }
    }
}
